<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
		<title>Teste JQUERY</title>
		<script src="/backservices/js/jquery-1.11.0.js"></script>
		<script>
			var address="http://localhost:8080/backservices/usuarios/";
			jQuery(document).ready(function(){
				  jQuery("#valor").change(function(){
						jQuery.getJSON(address+jQuery("#valor").val(),function (data){
							jQuery("#user").text(data.nomeAcesso);
							console.log(data);
							console.log(data.nomeAcesso);
						});
				  });
				});
		</script>
	</head>
	<body>
		<form>
			Informe o usuario:<input type="text" id="valor"/>
			<input type="button" id="botao" value="Clique Aqui"/>
			<p id="user"></p>
		</form>
	</body>
</html>